import 'package:flutter/material.dart';
import 'package:flutter_hx/services/app_theme_services.dart';

class GoodsRecommendHorizonWidget extends StatelessWidget{
  final String title;
  final String icon;
  final TextStyle titleStyle;
  const GoodsRecommendHorizonWidget({Key? key,required this.title,this.icon="",required this.titleStyle}):super(key:key);

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        const Expanded(child: Divider(height: 0.5,color:  Color.fromRGBO(196, 196, 196, 1))),
        const SizedBox(width: 10.5),
        Image.asset(icon.isNotEmpty?icon:"assets/images/icon_goods_recommend.png",width: 19.48,height: 17.42,gaplessPlayback: true),
        Text(title,style:titleStyle),
        const SizedBox(width: 10.5),
        const Expanded(child: Divider(height: 0.5,color:  Color.fromRGBO(196, 196, 196, 1))),
      ],
    );
  }

}